package com.youseu.taoliving.commodity.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.youseu.common.utils.PageUtils;
import com.youseu.taoliving.commodity.entity.BrandEntity;
import com.youseu.taoliving.commodity.entity.CategoryBrandRelationEntity;

import java.util.List;
import java.util.Map;

/**
 * 品牌分类关联表
 *
 * @author tao
 * @email tao@gmail.com
 * @date 2024-08-03 16:48:38
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);
    //保存商品和品牌关联信息
    void saveAll(CategoryBrandRelationEntity categoryBrandRelationEntity);
    //根据商品categoryId返回关联信息
    List<BrandEntity> getBrandsByCategoryId(Long categoryId);
}

